package org.ssh.service;

import java.util.List;

import org.ssh.dao.IAssetDao;
import org.ssh.dao.IBaseDao;
import org.ssh.dao.IUserDao;
import org.ssh.pojo.User;

public interface IAssetService<T> {
      
 
      
	public List<T> queryAsset(String assetid, Class<T> clazz);
	public void addAsset(T asset) throws Exception;
	public void modifyAsset(T asset) throws Exception;
	public void deleteAsset(int assetid, Class<T> clazz) throws Exception;
	public T getAsset(Class<T> clazz, int assetid);
	public IAssetDao getAssetdao();
	public void setAssetdao(IAssetDao assetdao);
	public boolean useAsset(int assetid,int userid)throws Exception;
	public boolean scrapAsset(int assetid,int userid) throws Exception;
	
}  